package com.gary.heap;

import java.util.ArrayList;
import java.util.List;

/**
 * -Xms9m -Xmx9m -XX:+PrintGCDetails
 * @author peng_rui
 * @date 2022/2/24
 */
public class GcDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList();
        while (true) {
            String a = "gary.com";
            a += a;
            list.add(a);
        }
    }
}
